$(function () {
    //支付方式
    $("#form_yhsx").find("[idVal='yhsx_zffs_id']").sjzdcombobox("zffs");

    //加载公司机构下拉框
    $("#yhsx_nbgs_id").combotree({
        loadFilter: function (rows) {
            return convert(rows);
        },
        onChange: function (newValue, oldValue) {
            if (oldValue != newValue) {
                $("#yhsx_khh_id").combobox('clear');
                $("#yhsx_khh_id").combobox("reload",$.webPath() + '/organ/khh/khhmcList?nbgsId=' + newValue);
            }
        }
    });


    $("#yhsx_dkfId").qyjgqczcombobox({
        onSuccess : function(){
            $("#yhsx_dkfId").zcombobox("setMap",{ id:$("#yhsx_dkf_id").val(),qc:$("#yhsx_dkf_qc").val()})
        }
    });



});